package fivechess;

import javax.swing.*;

public class FiveChess extends JFrame {
    ChessGame CG;

    FiveChess() {
        this.CG = new ChessGame();
        addMouseListener(CG);
        add(CG);
    }

    public static void main(String[] args) {
        FiveChess fiveChess = new FiveChess();
        fiveChess.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        fiveChess.setSize(900, 700);
        fiveChess.setTitle("五子棋");
        fiveChess.setVisible(true);
        fiveChess.setResizable(true);
    }
}